package cn.gson.springboot.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.dao.PricingYkDAO;
import cn.gson.springboot.model.mapper.PricingYkMapper;
import cn.gson.springboot.model.pojos.FactoryYk;
import cn.gson.springboot.model.pojos.PricingYk;
//调价
@Service
@Transactional(rollbackFor=Exception.class)
public class PricingYkService {
	@Autowired
	private PricingYkMapper pm;
	@Autowired
	private PricingYkDAO pd;
	
	/*//查询所有药品
	public JSONArray findAlltiaojia(){
		return pm.findAlltiaojia();
	}
	
	//修改
	public void update(Integer id2,Integer pricing_after_Price) {
		PricingYk f = pd.findById(id2).get();
		f.setPricing_after_Price(pricing_after_Price);
		pd.save(f);
	}*/
}
